﻿using ET_DbCommon.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ET_DbCommon.DAL
{
    public static class PostDAL
    {
        public static List<postModel> GetPostInfo()
        {
            using (var conn = MySqlHelper.GetConnection())
            {
                string sql = " * ";
                List<postModel> postModels = new List<postModel>();
                postModels = AllDefineDAL.GetElementCollection<postModel>(sql);

                return postModels;

            }
        }
    }
}
